#ifndef __RS232_MANAGER_H
#define __RS232_MANAGER_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>

typedef void(*recv_data_cb_t)(uint8_t*, uint32_t);

int rs232_module_init();
int rs232_module_deinit();
int rs232_module_write(const char* string, const uint32_t length);
void rs232_module_set_recv_cb(recv_data_cb_t cb);

#ifdef __cplusplus
}
#endif

#endif